package com.ksd.sbf;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class FreemarkerAction {
	
	@RequestMapping("/hello")
	public String index(Map<String, Object> model) {
		List<String> citys = new ArrayList<>();
		citys.add("beijing");
		citys.add("taiyuan");
		citys.add("shanghai");
		citys.add("luoyang");
		citys.add("shenzhen");
		model.put("citys", citys);
		return "hello";
	}
	
	
	@RequestMapping("/angular/citys")
	public String citys(Map<String, Object> model) {
		
		return "angular_http";
	}
	
	@RequestMapping("/angular/citys/table")
	public String citysByTable(Map<String, Object> model) {
		
		return "angular_table";
	}
}
